package com.wlscale.roadsystem.modular.setting.adapter;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;

import com.wlscale.roadsystem.R;

public class UserMangerAdapter extends BaseAdapter {
    private Context mContext;

    public UserMangerAdapter(Context mContext) {
        this.mContext = mContext;
    }

    @Override
    public int getCount() {
        return 20;
    }

    @Override
    public Object getItem(int i) {
        return null;
    }

    @Override
    public long getItemId(int position) {
        return position;
    }


    @Override
    public View getView(int position, View convertView, ViewGroup parent) {
        if (convertView == null) {
            convertView = View.inflate(mContext, R.layout.item_operator_manage_list, null);
            new ViewHolder(convertView);
        }
        ViewHolder holder = (ViewHolder) convertView.getTag();
        return convertView;
    }

    class ViewHolder {

        public ViewHolder(View view) {
            view.setTag(this);
        }
    }
}
